public class MapElement {
	
	private MapElement myLeft;
	private MapElement myRight;
	private MapElement myHead;
	
	private String myValue;
	
	public MapElement(String value) {
		this(value, null);
	}
	
	public MapElement(String value, MapElement head) {
		myValue = value;
		myHead = head;
	}
	
	public MapElement getLeft() {
		return myLeft;
	}
	
	public void setLeft(MapElement next) {
		myLeft = next;
	}

	public MapElement getRight() {
		return myRight;
	}
	
	public void setRight(MapElement next) {
		myRight = next;
	}
	
	public MapElement getHead() {
		return myHead;
	}
	
	public void setHead(MapElement next) {
		myLeft = next;
	}
	
	public String getValue() {
		return myValue;
	}
	

}
